.page-container {
    padding: 20px;
    background-color: #f5f7fa;
    min-height: 100vh;

    .energy-section {
        margin-bottom: 30px;

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 16px 24px;
            border-bottom: 1px solid #E6EBF5;

            h2 {
                font-size: 18px;
                color: #333;
                margin: 0;
            }
        }

        .energy-cards {
            display: flex;
            flex-direction: row;
            padding: 0 24px;
            gap: 10px;

            > .energy-card {
                flex-direction: column;
                width: 120px;

                ::v-deep .card-icon {
                    margin: 0;
                }

                ::v-deep .card-content {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;

                    .card-value {
                        margin-top: 10px;
                        text-align: center;
                    }
                }
            }

            .inner-container {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 8px;
                width: calc(100% - 120px);

                .energy-card {
                    flex: 1 1 calc(33.33% - 13.333px);
                    height: 62px;
                }
            }
        }
    }

    .main-content {
        display: flex;
        gap: 10px;

        .content--left {
            display: flex;
            flex-direction: column;
            width: calc(100% - 272px - 10px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            background: #fff;
        }

        .left-panel {
            display: flex;
            flex-direction: column;
            min-width: 0;

            .chart-container {
                padding: 20px;
                margin-bottom: 20px;
                overflow: hidden;

                .chart-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 20px;

                    .chart-title {
                        font-size: 16px;
                        font-weight: bold;
                        color: #606266;
                    }
                }

                .cost-chart-wrapper {
                    display: flex;
                    gap: 20px;

                    .pie-chart-container {
                        flex-shrink: 0;
                    }
                }
            }

        }

        .content--right {
            width: 272px;
            flex-shrink: 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            background: #fff;

            .price-section {

                > h3:first-child {
                    padding: 16px;
                    border-bottom: 1px solid #E6EBF5;
                }

                h3 {
                    font-size: 16px;
                    color: #333;
                }

                .price-group:not(:nth-child(1)) {
                    display: flex;
                    flex-direction: column;
                    gap: 8px;
                }

                .price-group {
                    border-radius: 8px;
                    padding: 12px 16px;


                    .price-header {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        margin-bottom: 15px;
                        font-size: 14px;
                        font-weight: bold;
                        color: #333;

                        .price-icon {
                            width: 4px;
                            height: 16px;

                            &.water {
                                background-color: #1890FF;
                            }

                            &.electricity {
                                background-color: #F7BA2A;
                            }

                            &.gas {
                                background-color: #52C41A;
                            }
                        }
                    }

                    .price-item {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        padding: 12px 16px;
                        border: 1px solid #DCDFE6;

                        .item--left {
                            display: flex;
                            flex-direction: column;

                            .price-range {
                                font-size: 12px;
                                color: #999;
                                margin-top: 4px;
                            }
                        }

                        .price-label {
                            font-size: 12px;
                            color: #333;
                            min-width: 60px;
                            font-weight: 500 !important;

                            > span {
                                font-size: 14px;
                                font-weight: 500;
                            }

                            .grey-text {
                                font-size: 10px;
                            }
                        }

                        .price-value {
                            font-size: 13px;
                            font-weight: bold;
                            color: #333;
                        }
                    }
                }
            }
        }
    }

    .main-content--footer {
        display: flex;
        flex-direction: column;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-top: 10px;

        .chart-container {
            margin-bottom: 20px;
            overflow: hidden;

            .chart-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 20px;

                .chart-title {
                    font-size: 16px;
                    font-weight: bold;
                    color: #606266;
                }
            }

            .cost-chart-wrapper {
                display: flex;
                gap: 20px;

                .pie-chart-container {
                    flex-shrink: 0;
                }
            }
        }

        .cost-summary {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            background: #fff;

            .cost-item {
                display: flex;
                align-items: center;
                gap: 16px;
                padding: 16px 13px;
                border: 1px solid #f0f0f0;

                .cost-color {
                    width: 12px;
                    height: 12px;
                    border-radius: 2px;
                }

                .cost-label {
                    font-size: 14px;
                    color: #333;
                    font-weight: 500;
                }

                .cost-percent {
                    font-size: 14px;
                    color: #666;
                    margin-left: auto;
                }

                .cost-value {
                    font-size: 14px;
                    color: #333;
                    font-weight: 500;

                    .small{
                        font-size: 10px;
                    }
                }
            }
        }
    }
}
